package Mangos::DB::Characters::CharacterPet;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_pet',

    columns => 
    [
        id                => { type => 'integer', not_null => 1 },
        entry             => { type => 'integer', default => '0', not_null => 1 },
        owner             => { type => 'integer', default => '0', not_null => 1 },
        modelid           => { type => 'integer', default => '0' },
        CreatedBySpell    => { type => 'integer', default => '0', not_null => 1 },
        PetType           => { type => 'integer', default => '0', not_null => 1 },
        level             => { type => 'integer', default => 1, not_null => 1 },
        exp               => { type => 'integer', default => '0', not_null => 1 },
        Reactstate        => { type => 'integer', default => '0', not_null => 1 },
        name              => { type => 'varchar', default => 'Pet', length => 100 },
        renamed           => { type => 'integer', default => '0', not_null => 1 },
        slot              => { type => 'integer', default => '0', not_null => 1 },
        curhealth         => { type => 'integer', default => 1, not_null => 1 },
        curmana           => { type => 'integer', default => '0', not_null => 1 },
        curhappiness      => { type => 'integer', default => '0', not_null => 1 },
        savetime          => { type => 'bigint', default => '0', not_null => 1 },
        resettalents_cost => { type => 'integer', default => '0', not_null => 1 },
        resettalents_time => { type => 'bigint', default => '0', not_null => 1 },
        abdata            => { type => 'scalar', length => 4294967295 },
    ],

    primary_key_columns => [ 'id' ],
);

1;

package Mangos::DB::Characters::CharacterPet::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterPet' }

__PACKAGE__->make_manager_methods('character_pet');

1;
